package com.fastadmin.controller;

import com.fastadmin.config.security.annotation.AnonymousAccess;
import com.fastadmin.mapper.impl.UserMapper;
import com.fastadmin.pojo.User;
import com.xphsc.easyjdbc.core.entity.Sorts;
import lombok.RequiredArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequiredArgsConstructor
public class TestController extends BaseController {
    private static final Logger logger = LoggerFactory.getLogger(TestController.class);
    private final UserMapper userMapper;

    @GetMapping(value = "test")
    @ResponseBody
    @AnonymousAccess
    public Object test() {
        return ok();
    }
}
